from django.shortcuts import render


class Cat:
    def __init__(self):
        self.color = 'blue'
        self.name = 'blue cat'

    def Say(self):
        return "cat"


def index_view(request):
    username = "zhaoliying"
    stock = 30
    news_list = ['ss', 'sd', 'yl', 'sjb']

    dic = {'name': 'silly', 'price': '20'}

    def func():
        return "lllllllllll"

    mycat = Cat()

    return render(request, "index.html", locals())
